package cn.green.manage.service;

import cn.green.core.executor.DclExecutor;
import cn.green.core.model.QField;
import cn.green.core.model.QTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wang.yishu
 * @version 1.0
 * @className QDclService
 * @description 数据库控制语言Sql
 * @date 2025/1/16 13:46
 */
public class QDclService {

    protected DclExecutor dclExecutor;

    public QDclService(DclExecutor dclExecutor) {
        this.dclExecutor = dclExecutor;
    }

    public boolean existTable(QTable table) {
        return dclExecutor.existTable(table);
    }

    public boolean existField(QField field) {
        return dclExecutor.existField(field);
    }

}
